package com.dobbinsoft.iotechn.device.api.biz;

import com.dobbinsoft.iotechn.core.exception.ServiceException;
import com.dobbinsoft.iotechn.device.entity.DeviceDataSnapshotEntity;

import java.util.List;

/**
 * Description:
 * User: rize
 * Date: 2020/6/22
 * Time: 15:32
 */
public interface DeviceBizService {

    /**
     * 激活设备
     * @param deviceId
     * @return
     */
    public String activeDevice(Long deviceId, Long productId) throws ServiceException;

    public String onlineDevice(Long deviceId);

    public String offlineDevice(String accessKeyId);

    public String auth(String ip, String username, String password) throws ServiceException;

    public List<DeviceDataSnapshotEntity> listDeviceData(Long deviceId);

}
